package com.balakitbbs.service;

import org.springframework.beans.factory.annotation.Autowired; 
import org.springframework.stereotype.Service;                 
import com.balakitbbs.page.SearchPageUtil;     
import java.util.*;     
import com.balakitbbs.entity.Bala_person;
import com.balakitbbs.dao.Bala_personDaoIF;
   /**
    * bala_person Service类
    */ 
@Service
public class Bala_personService{
@Autowired
private Bala_personDaoIF dao;
	public void addBala_person(Bala_person bala_person){
		dao.addBala_person(bala_person);
	}

	public void delBala_person(String id){
		dao.delBala_person(id);
	}

	public void delBala_personTrue(String id){
		dao.delBala_personTrue(id);
	}

	public void updateBala_person(Bala_person bala_person){
		dao.updateBala_person(bala_person);
	}

	public Bala_person selectBala_personById(String id){
		return dao.selectBala_personByID(id);
	}

	public int selectBala_personCount(){
		return dao.selectBala_personCount();
	}

	public int selectBala_personCountAll(){
		return dao.selectBala_personCountAll();
	}

	public List<Bala_person> selectBala_personsByPage(SearchPageUtil spu){
		return dao.selectBala_personsByPage(spu);
	}

	public int selectBala_personsByPOJOCount(Bala_person bala_person){
		return dao.selectBala_personsByPOJOCount(bala_person);
	}

	public List<Bala_person> selectBala_personsByPOJO(Bala_person bala_person){
		return dao.selectBala_personsByPOJO(bala_person);
	}

	public List<Bala_person> selectBala_personsByPojoPage(SearchPageUtil spu,Bala_person bala_person){
		Map map = new HashMap();
		map.put("spu",spu);
		map.put("pojo",bala_person);
		return dao.selectBala_personsByPojoPage(map);
	}

}

